package middleware.llvm.value;

/**
 * 立即数的IR形式
 *
 * @author 杨凯伟
 * @date 2024/10/30
 */
public class ImmediateValue extends Value {
    private int value;

    public ImmediateValue(int value) {
        super(IRType.getInt());
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getName() {
        return Integer.toString(value);
    }
}
